using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace SimpleFramework
{
    public static class DataHelper
    {
        private const int KEY_SUB_1 = 10000;
        private const int KEY_SUB_2 = 100000000;

        public static int ComputeKey(string key1)
        {
            return key1.GetHashCode();
        }

        public static int ComputeKey(int key1)
        {
            return key1;
        }

        public static int ComputeKey(int key1, int key2)
        {
            return KEY_SUB_1 * key1 + key2;
        }

        public static int ComputeKey(int key1, int key2, int key3)
        {
            return KEY_SUB_2 * key1 + KEY_SUB_1 * key2 + key3;
        }
    }
}